
const superagent = require('superagent');

module.exports = router => {

    /** 添加客户 */
    router.post('/api/client/add', require('./fn/clientAdd'));
    
    /** 查询客户列表2 */
    router.post('/api/client/list', require('./fn/clientListV2'));

    /** 客户详情 */
    router.post('/api/client/details/:id', require('./fn/clientDetails'));

    /** 更新客户详情 */
    router.post('/api/client/update/:id', require('./fn/clientUpdate'));

    /** 添加发票信息 */
    router.post('/api/client/addInvoicing', require('./fn/addInvoicing'));

    /** 删除发票信息 */
    router.del('/api/client/deleteInvoicing/:id', require('./fn/deleteInvoicing'));
}